#pragma once

namespace OgreUnified{

	static char* ConvertNetStringToChar( System::String^ str )
	{
		return (char*)(void*)System::Runtime::InteropServices::Marshal::StringToHGlobalAnsi(str);
	}

	static void DeleteHGlobalAnsi(char* ptr)
	{
		System::Runtime::InteropServices::Marshal::FreeBSTR(System::IntPtr(ptr));
	}

}